import request from '@/utils/request'

// 查询勋章配置列表
export function listMedalConfig(query) {
  return request({
    url: '/business/medalConfig/list',
    method: 'get',
    params: query
  })
}

// 查询勋章配置详细
export function getMedalConfig(id) {
  return request({
    url: '/business/medalConfig/' + id,
    method: 'get'
  })
}

// 新增勋章配置
export function addMedalConfig(data) {
  return request({
    url: '/business/medalConfig',
    method: 'post',
    data: data
  })
}

// 修改勋章配置
export function updateMedalConfig(data) {
  return request({
    url: '/business/medalConfig',
    method: 'put',
    data: data
  })
}

// 删除勋章配置
export function delMedalConfig(id) {
  return request({
    url: '/business/medalConfig/' + id,
    method: 'delete'
  })
}
